<?php
//site_root contains the full path of this project
define('SITE_ROOT',dirname(dirname(__FILE__)));

//Application Directories
define('PRESENTATION_DIR',SITE_ROOT.'/presentation/');
define('BUSINESS_DIR',SITE_ROOT.'/business/');

//Setting need to configure the smarty template 
define('SMARTY_DIR',SITE_ROOT.'/libs/smarty/');
define('TEMPLATE_DIR',PRESENTATION_DIR.'templates');
define('COMPILE_DIR',PRESENTATION_DIR.'templates_c');
define('CONFIG_DIR',SITE_ROOT.'/include/configs');

//These shold be true while developing website 
define('IS_WARNING_FATAL',true);
define('DEBUGGING',true);

//The Error Types to be reported 
define('ERROR_TYPES',E_ALL);

//Settings about mailing the error messages to admin
define('SEND_ERROR_MAIL',false);
define('ADMIN_ERROR_MAIL','admin@admin.com');
define('SENDMAIL_FROM','errors@sa.com');
ini_set('SENDMAIL_FROM',SENDMAIL_FROM);

//By default We don't log error messages to a file 
define('LOG_ERRORS',false);
define('LOG_ERRORS_FILE','c\\ecommerce\\errors.log.txt');
define('SITE_GENERIC_ERROR_MESSAGE','<h1>Ecommerce Error</h1>');

//DataBase Security Setup 
define('DB_PERSISTENCY','true');
define('DB_SERVER','localhost');
define('DB_USERNAME','root');
define('DB_PASSWORD','test');
define('DB_DATABASE','shop1');
define('PDO_DSN','mysql:host='.DB_SERVER.';dbname='.DB_DATABASE);

//Sever Http port 
define('HTTP_SERVER_PORT', '80');

//Virtual 
define('VIRTUAL_LOCATION','/ecommerce/');

// configure product list dispaly option 
define('SHORT_PRODUCT_DESCRIPTION_LENGTH',150);
define('PRODUCTS_PER_PAGE',4);






